#ifndef _DISP_H
#define _DISP_H
#include <math.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <ncurses.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <pthread.h>

#define WIDTH 52    //UI宽度
#define LENGTH 25   //UI长度


typedef unsigned int u_int32_t;
typedef long	time_t;


typedef struct If_msg_t 
{
    unsigned char g_if_name[32];
    unsigned char g_tx_packets[32];
    unsigned char g_rx_packets[32];
    unsigned char g_tx_bytes[32];
    unsigned char g_rx_bytes[32];
}If_msg_t;

unsigned char g_cur_time[64];

If_msg_t szMsg[32];
unsigned int if_index; 

WINDOW *infowin;

int Info_Display(void);
char* Time_Display(void);



#endif
